﻿Class Application


    Private Sub Application_Startup(ByVal sender As System.Object, ByVal e As System.Windows.StartupEventArgs)
        Dim mx As New MainWindow
        If e.Args.Count = 1 AndAlso Not String.IsNullOrEmpty(e.Args(0)) Then
            mx.LoadFileFromCommandLine(e.Args(0))
        Else '  e.Args.Count = 1 

        End If ' e.Args.Count = 1 
        Me.MainWindow = mx
        mx.ShowDialog()
    End Sub

End Class
